package com.noah.note.manager;

import com.noah.note.bean.User;
import com.noah.note.utils.LogUtils;

/**
 * Created by zzh on 2018/7/17.
 */

public class LoginManager {
    private static LoginManager instance;
    private User user;

    private LoginManager() {
    }

    public static LoginManager getInstance() {
        if (instance == null) {
            synchronized (LoginManager.class) {
                if (instance == null) {
                    instance = new LoginManager();
                }
            }
        }
        return instance;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
        LogUtils.i(user.toString());
    }
}
